import request from '../utils/request'

// 发布公告
export const publishNotice = (data) => {
  return request({
    url: '/notice/',
    method: 'post',
    data,
  })
}

// 获取公告列表
export const getNoticeList = () => {
  return request({
    url: '/notice/',
    method: 'get',
  })
}

// 获取公告详情
export const getNoticeDetail = (id) => {
  return request({
    url: `/notice/detail/${id}`,
    method: 'get',
  })
}
